import onnx

gemm_list = ['Gemm_1', 'Gemm_2', 'Gemm_5', 'Gemm_6']

def analyze(onnxfile, **kwargs):
    model = onnx.load(onnxfile)

    for node in model.graph.node:
        if node.op_type == 'Gemm':
            return False

        if node.name in gemm_list and node.op_type != 'MatMul':    
            return False

    return True